home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.july.archive / 000040_crash!axion.bt.…uk!D.Higginson_Tue, 20 Jul 93 03:46:04 PST.msg < prev    next >
Text File  |  1993-08-31  |  1KB  |  35 lines

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Tue, 20 Jul 93 03:46:04 PST
  3. Received: from zaphod.axion.bt.co.uk by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #15) id m0oIDLQ-0000JJC; Tue, 20 Jul 93 01:46 PDT
  5. Received: from elephant.axion.bt.co.uk by zaphod.axion.bt.co.uk with SMTP (PP); Tue, 20 Jul 1993 09:46:14 +0100
  6. Message-Id: <m0oIDLQ-0000JJC@crash.cts.com>
  7. Date: Tue, 20 Jul 93 09:46:08 BST
  8. From: D.Higginson@axion.bt.co.uk
  9. To: amigae@bkhouse.cts.com
  10. Cc: D.Higginson@axion.bt.co.uk
  11. Subject: Passing parameters other than LONGs
  12.  
  13.  
  14. Is it possible to write a procedure in Amiga E which
  15. accepts as a parameter something other than a 4-byte value?
  16.  
  17. I ask because one of the GadTools slider features is to
  18. call a conversion function of your own. It passes the
  19. level of the slider as a WORD (2 bytes). If I try
  20. typecasting any parameter I get a compilation error.
  21.  
  22. Failing this, can anyone tell me the machine code
  23. instruction to directly POP the value from the stack? I
  24. assume this is possible, but I don't know any 68000.
  25.  
  26. Finally, some hook functions like these expect you to save
  27. and restore all the 68000 registers. Can anybody tell me
  28. the instructions to do this? I have seen in programs
  29. things like: "MOVE.L d0-d7,sp" or something to that effect.
  30.  
  31. Any help would be greatly appreciated
  32.  
  33. Cheers
  34.  
  35. Dave